package com.jmxcfc.blfsc.huisheng.entity.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 慧声语音 异步通知过来,响应实体给对方:
 * 回调返回成功的标准是http状态码为20000，并且返回的内容体的status参数也为20000
 * @author pbs
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class NotifyResponseVo {

    /**
     * 状态:20000 成功,10000失败
     */
    private String code;


    /**
     *提示
     */
    private String msg;


    /**
     * 失败
     * @param message
     * @return
     */
    public static  NotifyResponseVo fail(String message) {
        NotifyResponseVo notifyResponseVo = new NotifyResponseVo();
        notifyResponseVo.setCode("10000");
        notifyResponseVo.setMsg(message);
        return notifyResponseVo;
    }

    /**
     * 成功
     * @return
     */
    public static  NotifyResponseVo success() {
        NotifyResponseVo notifyResponseVo = new NotifyResponseVo();
        notifyResponseVo.setCode("20000");
        notifyResponseVo.setMsg("处理正常");
        return notifyResponseVo;
    }


}
